package cn.youyeku.zsxh.Utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

import cn.youyeku.zsxh.R;
import cn.youyeku.zsxh.trans.GlideCircleTransform;


/**
 * Created by youye on 17-4-11.
 */

public class ImageUtils {


    public static void GlideImg(Context context, ImageView imageView,String url){

                Glide.with(context)
                .load(url)
                .diskCacheStrategy(DiskCacheStrategy.NONE)
                        .error(R.drawable.default_avatar)
                .into(imageView);

    }

    public static void GlideCircleImg(Context context, CircleImageView imageView,String url){

        Glide.with(context)
                .load(url)
                .diskCacheStrategy(DiskCacheStrategy.NONE)
                .error(R.drawable.default_avatar)
                .into(imageView);

    }
}
